﻿package Framework.Util
{

    public class Exception extends Error
    {
        private var _code:int;
        private var _method:String;
        public static const ExceptionCodeSystemBase:int = 10000;
        public static const ExceptionCodeRMIBase:int = 20000;
        public static const ExceptionCodeUserBase:int = 30000;
        public static const ExceptionCodeUnkown:int = 10000;
        public static const ExceptionOutOffMemery:int = 10001;
        public static const ExceptionCodeBase:int = 10002;
        public static const ExceptionCodeStd:int = 10003;
        public static const ExceptionCodeDateTime:int = 10004;
        public static const ExceptionCodeFunction:int = 10005;
        public static const ExceptionCodeNullHandle:int = 10006;
        public static const ExceptionCodeDB:int = 10007;
        public static const ExceptionCodeSerialize:int = 10008;
        public static const ExceptionCodeLang:int = 10009;
        public static const ExceptionCodeXml:int = 10010;

        public function Exception(param1:String = "Exception", param2:int = 10002)
        {
            this.message = param1;
            this.code = param2;
            return;
        }// end function

        public function get code() : int
        {
            return this._code;
        }// end function

        public function set code(param1:int) : void
        {
            this._code = param1;
            return;
        }// end function

        public function get method() : String
        {
            return this._method;
        }// end function

        public function set method(param1:String) : void
        {
            this._method = param1;
            return;
        }// end function

    }
}
